package com.somekim.mythread;

/**
 * 执行start（）方法的顺序不代表线程启动的顺序
 * @author zdl
 * @version v1.0
 * @date 2019/8/26
 */
public class MyThread3 extends Thread{

    private int i;
    public MyThread3(int i) {
        super();
        this.i = i;
    }
    @Override
    public void run() {
        System.out.println(i);
    }

    public static void main(String[] args) {
        /**
         * 执行start（）方法的顺序不代表线程启动的顺序
         */
        MyThread3 t11 = new MyThread3(1);
        MyThread3 t12 = new MyThread3(2);
        MyThread3 t13 = new MyThread3(3);
        MyThread3 t14 = new MyThread3(4);
        MyThread3 t15 = new MyThread3(5);
        MyThread3 t16 = new MyThread3(6);
        MyThread3 t17 = new MyThread3(7);
        MyThread3 t18 = new MyThread3(8);
        MyThread3 t19 = new MyThread3(9);
        MyThread3 t110 = new MyThread3(10);
        MyThread3 t111 = new MyThread3(11);
        MyThread3 t112 = new MyThread3(12);
        MyThread3 t113 = new MyThread3(13);
        t11.start();
        t12.start();
        t13.start();
        t14.start();
        t15.start();
        t16.start();
        t17.start();
        t18.start();
        t19.start();
        t110.start();
        t111.start();
        t112.start();
        t113.start();


    }
}
